import React, { Component } from "react";
import { Button, Form } from "semantic-ui-react";
class FormSet extends Component {
  handleSubmit() {

    // 提交数据
    this.props.onSubmit();
  }
  render() {
    return (
      <Form>
        <Form.Field>
          <label>First Name</label>
          <input placeholder="First Name" />
        </Form.Field>
        <Button type="submit" onClick={this.handleSubmit.bind(this)}>
          Submit
        </Button>
      </Form>
    );
  }
}

// FormSet.propTypes = {
//   handleClick: PropTypes.func.
// };
export default FormSet;
